# == Class: crond
#
# Full description of class crond here.
#
# === Parameters
#
# Document parameters here.
#
# [*sample_parameter*]
#   Explanation of what this parameter affects and what it defaults to.
#   e.g. "Specify one or more upstream ntp servers as an array."
#
# === Variables
#
# Here you should define a list of variables that this module would require.
#
# [*sample_variable*]
#   Explanation of how this variable affects the funtion of this class and if
#   it has a default. e.g. "The parameter enc_ntp_servers must be set by the
#   External Node Classifier as a comma separated list of hostnames." (Note,
#   global variables should be avoided in favor of class parameters as
#   of Puppet 2.6.)
#
# === Examples
#
#  class { crond:
#    servers => [ 'pool.ntp.org', 'ntp.local.company.com' ],
#  }
#
# === Authors
#
# Author Name <author@domain.com>
#
# === Copyright
#
# Copyright 2013 Your name here, unless otherwise noted.
#
class crond (
  $enable_prockill    = $crond::params::enable_prockill,
  $enable_resetra     = $crond::params::enable_resetra,
  $enable_zombie      = $crond::params::enable_zombie,
  $enable_nrpe        = $crond::params::enable_nrpe,
  $enable_pbsclean    = $crond::params::enable_pbsclean,
  $enable_iop         = $crond::params::enable_iop,
)inherits crond::params {

 #resources { cron: purge => true } 
 if $enable_resetra      { include '::crond::resetra'  }
  include '::crond::prockill'
 if $enable_zombie       { include '::crond::zombie'   }
 if $enable_nrpe         { include '::crond::nrpe'   }
 #if $enable_pbsclean     { include '::crond::pbsclean' }
 include '::crond::top'
  #include '::crond::ldlm' 
}
